sandwich_orders=['red bean',
	'pastrami','tea','pastrami',
	'baicai','pastrami']
finished_sandwiches=[]

if 'pastrami' in sandwich_orders:
	print('抱歉，pastrami卖完了！！！\n')

while 'pastrami' in sandwich_orders:	#删元素pastrami
	sandwich_orders.remove('pastrami')
	print(sandwich_orders)
	
if 'pastrami' not in sandwich_orders: #判断元素pastrami是否存在
		
	while sandwich_orders:
		temp=sandwich_orders.pop()
		print('\nI made your tuna sandwich : '+temp)
		finished_sandwiches.append(temp)
		
		
for finished_sandwiche in finished_sandwiches:
	print(finished_sandwiche)
	
